<?php
// +----------------------------------------------------------------------
// | 微信相关设置
// +----------------------------------------------------------------------
return [

    'app_id' => env('wechat.wechat_app_id', ''),
    'app_secret' => env('wechat.wechat_app_sercert', ''),
    // 指定 API 调用返回结果的类型：array(default)/collection/object/raw/自定义类名
    'response_type' => 'array',
    // 缓存 目录为 `runtime/wechat.log`
    'log' => [
        'level' => 'debug',
        'file' => app()->getRuntimePath() . '/wechat.log',
    ],
    // V3 支付配置
    'pay' => [
        'mch_id' => env('WECHAT_MCH_ID', ''),
        // V3 密钥
        'v3_key' => env('WECHAT_V3_KEY', ''),
        'v2_key' => '',
        // 绝对路径
        'cert_path' => app()->getRuntimePath() . '/cert/cert.pem',
        // 绝对路径
        'key_path' => app()->getRuntimePath() . '/cert/key.pem',
        // 异步通知地址
        'notify_url' => app()->request->scheme(). '://'. app()->request->host(). '/index.php/wechat/notify',
    ]

];
